from machine import UART
import time
import network

wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect("WIFI_HONG", "13527296862xxh")
print(wlan.isconnected())
print(wlan.config("mac"))

uart0 = UART(1, 9600, tx=17, rx=16)

i = 0
while True:
    time.sleep(1)
    uart0.write("%i\n" % i)
    i += 1
    recv = uart0.read()
    if recv:
        print(recv)
